import { request } from '@/utils/request';
import { AddressItem } from '@/types/address';

/**
 * 获取收货地址列表
 * @returns 收货地址列表
 */
export const getAddressList = async (): Promise<AddressItem[]> => {
  const response = await request<AddressItem[]>('/api/address/list', 'GET');
  return response.data;
}; 